import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Intentpage extends StatelessWidget {
  String messages;

  Intentpage(this.messages);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text("listview"),
          ),
          body: Column(
            children: [
              Text(messages),
              RaisedButton(
                child: Text("back home"),
                onPressed: (){
                  backhome(context);
                },
              ),
            ],
          )
      ),
    );
  }
}
void backhome (BuildContext context){
  Navigator.of(context).pop("2222222");
}
